<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                template="./../templates/base.xhtml"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core">
    <ui:define name="content">

        #{homeController.accesoURL(true, "")}
        <div id="ki" style="width: 400px">
        <h:form>
            <h2>
                <h:graphicImage library="images" name="llave.png" />
                <h:outputText value="Cambio de Clave" />
            </h2>

            <h4> <h:messages globalOnly="false" style="color: red" /> </h4>
            
                <p:panelGrid columns="2">  
                    <f:facet name="header">
                        CAMBIAR CONTRESEÑA
                    </f:facet> 

                    <h:outputLabel value="Clave actual :" />
                    <p:password id="act" value="#{homeController.claveAct}" />
                    <h:outputLabel value="Clave nueva :" /> 
                    <p:password id="new" value="#{homeController.claveNew}" feedback="true"/>
                    <h:outputLabel value="Repetir clave:" /> 
                    <p:password id="rep" value="#{homeController.claveRep}" feedback="true"/> 
                    <p:commandButton value="Aceptar" action="#{homeController.cambiarPWD()}" />
                    <p:commandButton value="Cancelar" action="#{homeController.indexpanel()}" immediate="true" />
                    </p:panelGrid>
                    </h:form>
                
            </div>
    </ui:define>
</ui:composition>
